$(document).ready(function (){

    $("#addMathQuestion").click(function (){
        var title = $("#L_title").val()
        var answerA = $("#L_answerA").val()
        var answerB = $("#L_answerB").val()
        var answerC = $("#L_answerC").val()
        var answerD = $("#L_answerD").val()
        var realAnswer = $("#L_realAnswer").val()
        var projectSelectId = $("#L_projectSelect").val()
        var chapterId = $("#L_chapter").val()
        var examYear = $("#L_examYear").val()
        var isImage = $(".layui-input:checked").val()
        $.ajax({
            url:'/exam/addMathQuestion',
            type:'get',
            dataType:"json",
            contentType:'application/js;charset=utf-8',
            data:{title:title,answerA:answerA,answerB:answerB,answerC:answerC,answerD:answerD,realAnswer:realAnswer,projectSelectId:projectSelectId,chapterId:chapterId,examYear:examYear,isImage:isImage},
            success:function (data){
                alert(1)
            }}
        )
    })

})